const express = require( 'express' );

const port = 8080 ;
const app = express();

// 处理静态资源
app.use( express.static( 'public' ) );

app.listen( port );